﻿using System.IO;
using Looptribe.Moodlin8.Model;

namespace Looptribe.Moodlin8.ViewModel
{
    public class FileWrapper : Wrapper<File>
    {
        public FileWrapper(File wrappedObject) : base(wrappedObject)
        {
        }

        public string Name
        {
            get { return WrappedObject.FileName; }
        }

        public string FileType
        {
            get { return Path.GetExtension(Name); }
        }
    }
}
